﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace hzGis.utils
{
    public class NumberHelper
    {
        public static double NextDouble(Random ran, double minValue, double maxValue, int decimalPlace)
      {
          double randNum = ran.NextDouble() * (maxValue - minValue) + minValue;
          return Convert.ToDouble(randNum.ToString("f" + decimalPlace));
      }
    }
}
